package com.ruoyi.datastatistics.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 公摊报表对象 t_public_share_report
 *
 * @author zt
 * @date 2025-05-27
 */
@TableName("t_public_share_report")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
public class PublicShareReport extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value="id",type = IdType.AUTO)
    private Long id;

    /** 租户号 */
    @Excel(name = "租户号")
    @TableField("tenant_id")
    private String tenantId;

    /** 公摊主键 */
    @Excel(name = "公摊主键")
    @TableField("public_share_id")
    private String publicShareId;

    /** 公摊名称 */
    @Excel(name = "公摊名称")
    @TableField("public_share_name")
    private String publicShareName;

    /** 能耗分类 */
    @Excel(name = "能耗分类")
    @TableField("energy_type")
    private Long energyType;

    /** 公摊用量 */
    @Excel(name = "公摊用量")
    @TableField("public_share_amount")
    private BigDecimal publicShareAmount;

    /** 公摊费用 */
    @Excel(name = "公摊费用")
    @TableField("public_share_cost")
    private BigDecimal publicShareCost;

    /** 公摊单价 */
    @Excel(name = "公摊单价")
    @TableField("price")
    private BigDecimal price;

    /** 报表日期 */
    @Excel(name = "报表日期")
    @TableField("report_date")
    private String reportDate;

    /** 报表类型1-日，2-月，3-年 */
    @Excel(name = "报表类型1-日，2-月，3-年")
    @TableField("report_type")
    private Long reportType;

    /** 创建人 */
    @Excel(name = "创建人")
    @TableField("created_by")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("created_time")
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    @TableField("updated_by")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("updated_time")
    private Date updatedTime;

    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String areaName;

    @TableField(exist = false)
    private String areaId;
    @TableField(exist = false)
    private String userId;

    @TableField(exist = false)
    private String sheetsCode;

    @TableField(exist = false)
    private String terminalId;

    @TableField(exist = false)
    private String installAddress;

    @TableField(exist = false)
    private String startReading;

    @TableField(exist = false)
    private String endReading;

    @TableField(exist = false)
    private String publicShareCoefficient;

    @TableField(exist = false)
    private String publicShareType;






    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tenantId", getTenantId())
            .append("publicShareId", getPublicShareId())
            .append("publicShareName", getPublicShareName())
            .append("energyType", getEnergyType())
            .append("publicShareAmount", getPublicShareAmount())
            .append("publicShareCost", getPublicShareCost())
            .append("price", getPrice())
            .append("reportDate", getReportDate())
            .append("reportType", getReportType())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .toString();
    }
}
